package com.wenson.behavior.observer;

/**
 * @ClassName: FansClient
 * @Author: luowangcheng
 * @Date: 2024/6/16 16:52
 * @Description:
 */
public class FansClient {
    public static void main(String[] args) {
        Buyer tangSir = new PhoneFans("手机粉");
        Buyer barJee = new HandChopper("剁手族");
        Shop shop = new Shop();
        //预定注册
        shop.register(tangSir);
        shop.register(barJee);
        //商品到货
        shop.setProduct("猪肉炖粉条");
        shop.setProduct("橘子手机");
    }
}
